package cn.xshi.sys.service.impl;

import cn.xshi.sys.model.SysIcon;
import cn.xshi.sys.param.SysIconForm;
import cn.xshi.sys.service.SysIconService;
import cn.xshi.common.base.BaseService;
import cn.xshi.sys.dao.SysIconDao;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
 * @Desc 字体图标库
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@Service
public class SysIconServiceImpl extends BaseService implements SysIconService {

    @Resource
    SysIconDao sysIconDao;

    /**
     * 初始化分页
     * @param condition
     * @return
     */
    public List<SysIcon> getSysIconListByCondition(Map<String,Object> condition){
        return sysIconDao.getSysIconListByCondition(condition);
    }

    /**
     * 查询单个对象
     * @param id
     * @return
     */
    public SysIcon getSysIconById(String id){
        return sysIconDao.getSysIconById(id);
    }

    /**
     * 新增
     * @param sysIcon
     * @return
     */
    public int addSysIcon(SysIcon sysIcon){
       return sysIconDao.addSysIcon(sysIcon);
    }

    /**
     * 修改
     * @param sysIcon
     * @return
     */
    public int updateSysIcon(SysIcon sysIcon){
        return sysIconDao.updateSysIcon(sysIcon);
    }

    /**
     * 删除
     * @param condition
     * @return
     */
    public int delSysIcon(Map<String,Object> condition){
        return sysIconDao.delSysIcon(condition);
    }

    /**
     * 查询集合
     * @param sysIconForm
     * @return
     */
    public  List<SysIcon> getSysIconList(SysIconForm sysIconForm){
        return sysIconDao.getSysIconList(sysIconForm);
    }
}
